<template>
  <router-view />
  <nav>
    <router-link class="tab-bar-item" to="/home/zx">
      <div class="icon"><i class="iconfont icon-home"></i></div>
      <div>人气</div>
    </router-link>
    <router-link class="tab-bar-item" to="/category">
      <div class="icon"><i class="iconfont icon-fenleiorguangchangorqita"></i></div>
      <div>分类</div>
    </router-link>
    <router-link class="tab-bar-item" to="/shoping">
      <div class="icon"><i class="iconfont icon-shangjia"></i></div>
      <div>商家</div>
    </router-link>
    <router-link class="tab-bar-item" to="/shopcart">
      <div class="icon"><i class="iconfont icon-l24gl-bag"></i></div>
      <div>购物袋</div>
    </router-link>
    <router-link class="tab-bar-item" to="/user">
      <div class="icon"><i class="iconfont icon-wode"></i></div>
      <div>我的</div>
    </router-link>
  </nav>
</template>

<style lang="scss">
@import "assets/css/iconfont.css";
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
}

nav {
  background-color: #f6f6f6;
  display: flex;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9;
  a {
    color: #888;
    &.router-link-exact-active {
      color: red;
    }
  }
  .tab-bar-item {
    flex: 1;
    text-align: center;
    height: 55px;
    font-size: 16px;
    line-height: 30px;
  }
  .tab-bar-item .icon {
    width: 24px;
    height: 24px;
    margin-top: 3px;
    vertical-align: middle;
    display: inline-block;
    
  }
  div{
    font-size: 12px;
    
  }
}
</style>
